Skip to content

bpo-31241: Fix AST node position for list and generator comprehensions.#10633

Merged
serhiy-storchaka merged 2 commits into
python:masterfrom
serhiy-storchaka:ast-location
Nov 27, 2018
Merged

bpo-31241: Fix AST node position for list and generator comprehensions.#10633
serhiy-storchaka merged 2 commits into
python:masterfrom
serhiy-storchaka:ast-location

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Nov 21, 2018

Copy link
Copy Markdown
Member

The lineno and col_offset attributes of AST nodes for list comprehensions,
generator expressions and tuples are now point to the opening parenthesis or
square brace. For tuples without parenthesis they point to the position
of the first item.

https://bugs.python.org/issue31241

The lineno and col_offset attributes of AST nodes for list comprehensions,
generator expressions and tuples are now point to the opening parenthesis or
square brace. For tuples without parenthesis they point to the position
of the first item.
@serhiy-storchaka
serhiy-storchaka merged commit b619b09 into python:master Nov 27, 2018
@serhiy-storchaka
serhiy-storchaka deleted the ast-location branch November 27, 2018 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants